/*
 * Created by LiuYou on 2020/11/27.
 *
 */

#include "Computer.hpp"
#include "impl/ComputerImpl.hpp"


Computer_::Computer::Computer(const GraphicsCard_::GraphicsCard& graphicsCard) : pImpl(
        std::make_shared<ComputerImpl>(graphicsCard)) {

}

Computer_::Computer::~Computer() = default;

const GraphicsCard_::GraphicsCard& Computer_::Computer::getGraphicsCard() const {
    return pImpl->getGraphicsCard();
}

std::ostream& Computer_::operator<<(std::ostream& os, const Computer_::Computer& computer) {
/*    os << "graphicsCard: " << computer.graphicsCard;
    return os;*/

    operator<<(os, *computer.pImpl);
    return os;
}